/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.sober;

import java.util.List;
import java.util.Map;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User:chenYuan (mail:39793751@qq.com)
 * Date: 2007-1-9
 * Time: 20:42:20
 */
public interface SqlMapClient
{
    Object getUniqueResult(String namespace, String exeid, Object o) throws Exception;

    Object getUniqueResult(String namespace, String exeid, Map<String, Object> valueMap) throws Exception;

    List queryForList(String namespace, String exeid, Object o, int currentPage, int totalCount, boolean loadChild, boolean rollRows) throws Exception;

    List queryForList(String namespace, String exeid, Map<String, Object> valueMap, int currentPage, int totalCount, boolean loadChild, boolean rollRows) throws Exception;

    boolean execute(String namespace, String exeid, Object o) throws IOException;

    boolean execute(String namespace, String exeid, Map<String, Object> valueMap) throws IOException;

    int update(String namespace, String exeid, Object o) throws IOException;

    int update(String namespace, String exeid, Map<String, Object> valueMap) throws IOException;


}